//所有请求接口地址
const url = "http://localhost:3000/api";

const urls = class {
  static m() {
    //注册接口
    const register = `${url}/user/register`;
    //登录接口
    const login = `${url}/user/login`;
    //用户列表
    const pulluserlist = `${url}/customer/pulluserlist`;

    //获取订单列表
    const obtainorder = `${url}/order/GetOrders`;
    //获取餐桌列表信息
    const gettable = `${url}/order/gettablelist`;
    const viewoder = `${url}/order/Detailed_Menu`;
    //图片上传
    const uploadimg = `${url}/upload/imageupload`;
    //菜品获取
    const getfoodMenu = `${url}/menu/getmenu`;
    //菜品添加
    const addfoodMenu = `${url}/menu/add`;
    //菜品修改
    const ShelfFoodMenu = `${url}/menu/Shelf`;
    //菜品单位添加
    const ounceadd = `${url}/ounce/add`;
    //菜品单位获取
    const ounceget = `${url}/ounce/getounce`;
    //菜品类目添加
    const soupsadd = `${url}/soups/add`;
    //菜品类目获取
    const soupsget = `${url}/soups/getsoup`;
    //员工列表获取
    const GetemployeeList = `${url}/employes/getemployeslist`;
    //员工新增
    const Addemployes = `${url}/employes/add`;
    //员工删除
    const Deleteemployes = `${url}/employes/delete`;
    const UpemployesWorkState = `${url}/employes/workStateUpdate`;
    //console.log(login);
    return {
      register,
      login,
      pulluserlist,
      obtainorder,
      gettable,
      viewoder,
      uploadimg,
      getfoodMenu,
      addfoodMenu,
      ShelfFoodMenu,
      ounceadd,
      ounceget,
      soupsadd,
      soupsget,
      GetemployeeList,
      Addemployes,
      Deleteemployes,
      UpemployesWorkState
    };
  }
};

export default urls;
